<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>媒体查询 </title>
        <style>
            body{
                background: rgba(5, 28, 245, 0.3);
            }
            /*媒体查询，必须处于普通css样式之后*/
            @media screen and (min-width: 1000px){
                body{
                    background: #ff150e;
                }
            }
            @media screen and (min-width: 500px) and (max-width: 1000px) and (max-height: 500px){
                body{
                    background: yellowgreen;
                }
            }
        </style>
    </head>
    <body>
        
    </body>
</html>